package com.ruoyi.stream.framework.core.workDomain.io.ioBehavior;

import com.ruoyi.stream.framework.core.workDomain.SingleIOTask;
import com.ruoyi.stream.framework.core.workDomain.SingleIOTaskGroup;
import com.ruoyi.stream.framework.core.workDomain.io.IOBehavior;

public class SingleCancelBehavior implements IOBehavior {
    @Override
    public void act(SingleIOTask task) {
        SingleIOTaskGroup group = task.getGroup();
        group.getWaitForAct().remove(task);
        group.getWaitFullTask().remove(task);
    }
}
